package com.sws.web.controller.student_attendance.device;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * 设备控制器
 * 提供设备相关HTTP接口
 */
@Api(tags = {"设备控制器"
        + "\n" + "提供设备相关HTTP接口"})
@RestController
@RequestMapping("/api/device")
public class DeviceWebsocktController {
    
    /**
     * 获取WebSocket服务状态
     */
    @ApiOperation("获取WebSocket服务状态")
    @GetMapping("/ws/status")
    public Map<String, Object> getWebSocketStatus() {
        Map<String, Object> result = new HashMap<>();
        result.put("status", "running");
        result.put("websocket_endpoint", "/ws/device");
        return result;
    }
} 